package org.NooLab.glue.components;

import java.io.Serializable;

import org.NooLab.glue.MessageBoard;



public class GlobalReceipts implements Serializable {

	transient private static final long serialVersionUID = -8681766364567530261L;



	transient MessageBoardShareIntf messageBoard;
	
	long globalRegisteredID = 1;
	long globalReceiptID = 1;

	
	public GlobalReceipts(MessageBoardShareIntf messageboard){
		messageBoard = messageboard;
		
	}

	// ------------------------------------------------------------------------
	
	synchronized public long incGlobalReceiptID() {
		globalReceiptID++;
		return globalReceiptID;
	}

	synchronized public long incGlobalRegisteredID(){
		globalRegisteredID++;
		return globalRegisteredID; 
	}

	// ----------------------------------------------
	synchronized public long getGlobalRegisteredID() {
		return globalRegisteredID;
	}


	synchronized public void setGlobalRegisteredID(long globalRegisteredID) {
		this.globalRegisteredID = globalRegisteredID;
	}

	
	synchronized public long getGlobalReceiptID() {
		return globalReceiptID;
	}


	synchronized public void setGlobalReceiptID(long globalReceiptID) {
		this.globalReceiptID = globalReceiptID;
	}
	
	
	
	
}
